Email Automation is automating several tasks related to emails to handle them efficiently with minimal effort. Two situations for interacting with emails are:

Email is the oldest form of digital communication between people, and to this day, many business processes are still triggered by a simple email. The users keep a close check on their inbox throughout the day, and thus, getting an email report about the status of an automated task might be essential sometimes to keep it on track.

There are many tasks related to emails that can be automated. Email automation is a time-saving activity that helps to manage bulk emails with minimal human efforts. It is one of the best techniques to ease out the difficulty of efficiently handling massive data over emails.

From an RPA perspective, two situations for interacting with emails are:

o Names or ID numbers from the subject or body o Input files coming as attachments (.xls. .pdf)

o Progress reports o Exception alerts

Email automation involves several configuration steps and different types of applications. The process requires the usage of several if-else control statements and standard, structured or unstructured input and output types.

The UiPath.Mail.Activities package includes all the activities related to emails in UiPath.

Email Protocols and related activities

SMTP:

o Simple Mail Transfer Protocol. o Mail servers and other mail transfer agents use the SMTP protocol to send mail messages on TCP port 25 o Email as output. SMTP can be used with Gmail to send emails.

UiPath Studio Activity:

• Send SMTP Mail Message: Sends an email message by using the SMTP protocol.

POP3:

o Post Office Protocol o Protocol for reading messages o Input via email. POP3 can also be used to retrieve email from Gmail

UiPath Studio Activity:

• Get POP3 Mail Messages: Retrieves a POP3 email message from a specified server.

IMAP :

o Internet Message Access Protocol o Offers useful features to mark messages as read or move them between folders o Input via email. IMAP can also be used to retrieve email from Gmail

UiPath Studio Activities:

• Get IMAP Mail Messages: Retrieves an IMAP email message from a specified server.

• Move IMAP Mail Message: Moves an IMAP email message to a specified folder.

Microsoft Exchange:

o Microsoft's enterprise email solution o Sends and receives emails o Uses a proprietary protocol called Messaging Application Programming Interface or MAPI to talk to email clients

UiPath Studio Activities:

• Get Exchange Mail Messages: Retrieves an email message from Exchange.

• Move Exchange Mail Message: Moves an email message from Exchange to another folder.

• Send Exchange Mail Message: Sends an email message from Exchange.

• Delete Exchange Mail Message: Deletes an Exchange email message.

• Exchange Scope: Connects to Exchange and provides scope for other Exchange activities.

Microsoft Outlook :

o Personal information manager from Microsoft (information-sharing platform) o Used as an email client o Sends and receives emails o Also comes with calendar, task manager, scheduling meeting request and many other information management facilities

UiPath Studio Activities:

• Get Outlook Mail Messages: Retrieves email messages from Outlook.

• Move Outlook Mail Messages: Moves an Outlook email message to a specified folder.

• Send Outlook Mail Message: Sends an email message from Outlook.

• Reply to Outlook Mail Message: Replies to an email message using Outlook.

IBM Notes:

o Personal mail, calendar, and schedule manager o Desktop workflow application that provides instant messaging, emails, calendars, blogs, etc

UiPath Studio Activities:

• Get IBM Notes Mail Messages: Retrives Mail Messages from IBM Notes

• Move IBM Notes Mail Messages: Moves an IBM Notes Mail Message to a specific folder.

• Send IBM Notes Mail Messages

There are two generic email activities available for saving email attachments and email messages on the local drive. 1. Save attachments • Saves the mail message attachments to the specified folder • If the folder doesn't exist, it is created. If no folder is specified, the downloads are saved in the project folder • Files in the specified folder with the same name as the attachments are overwritten

• Important properties are:

• FolderPath: The full path of the folder where the attachments are to be saved • Message: The MailMessage object whose attachments are to be saved • Attachments: The retrieved attachments

2. Save Mail Message • Saves the email message to the specified folder • If the folder doesn't exist, it is created. If no folder is specified, the downloads are saved in the project folder • Files in the specified folder with the same name as the messages are overwritten

• Important properties are: • MailMessage: The MailMessage object to be saved • FilePath: The full path where the MailMessage object is to be saved